package com.xzs.demo.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xzs.demo.entity.UserDao;
import com.xzs.demo.service.UserDaoService;

@Controller
@RequestMapping("/demo")
public class UserController {

	@Autowired
	private UserDaoService uDao;
	
	
	@RequestMapping(value = "/whole")
	
	public String wholeInfo(HttpServletRequest httpRequest) {
	
		return "index";
		
		
	}

	@RequestMapping(value = "/whole1")
	@ResponseBody
	public String wholeInfo1(HttpServletRequest httpRequest) {
	
		return "你好我需要拦截";
		
		
	}
	
	
}
